const router = require('koa-router')()

router.prefix('/news')
router.post('/getnews', async (ctx, next) => {
    let result = await ctx.db.EXCUTE('SELECT * FROM news ORDER BY newsid');
    ctx.body = result;
  })
  


module.exports = router